<%@include file="/WEB-INF/common/taglibs.jsp"%>
<script src="/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/ckfinder/ckfinder.js"></script>
 
<script>
		$(document).ready(function(){
 		
			
			CKEDITOR.replace( 'editor4' );
			CKEDITOR.on( 'instanceReady', function( evt ) {
				var editor = evt.editor;
				
				// Apply focus class name.
				editor.on( 'focus', function() {
					editor.container.addClass( 'cke_focused' );
				});
				editor.on( 'blur', function() {
					editor.container.removeClass( 'cke_focused' );
				});

				// Put startup focus on the first editor in tab order.
				if ( editor.tabIndex == 1 ){
					editor.focus();
				}
				CKFinder.setupCKEditor( editor, { basePath : '/ckfinder/', skin : 'v1' } ) ;
				
			});
			
			
			
			
		});

 
	</script>

<div class="row-fluid">

	<div class="span12">

		<div class="page-header">
			<h4>Template</h4>
		</div>

<form class="form-horizontal seperator" method="post">

<!--name --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="name">Name :</label><input class="span4" id="name" name="name"   type="text" value="${entity.name}" /></div></div></div>
<!--path --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="path">Path :</label><input class="span4" id="path" name="path"   type="text" value="${entity.path}" /></div></div></div>
<!--encode --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3">Encode :</label><div class="span4 controls"><select name="encode"><c:if test="${not empty encodes}"><c:forEach var="single" items="${encodes}"><option value="${single}"${(single == entity.encode)?'selected':'' }>${single}</option></c:forEach></c:if></select></div></div></div></div>
<!--partial --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="partial">Partial :</label><div class="left marginT5 marginR10"><div class="radio" id="uniform-partial1"><span class="<c:if test="${entity.partial }">checked</c:if>"><input type="radio" name="partial" id="partial1" value="true" <c:if test="${entity.partial}">checked="checked"</c:if> style="opacity: 0;"></span></div>True</div><div class="left marginT5 marginR10"><div class="radio" id="uniform-partial2"><span class="<c:if test="${!entity.partial}">checked</c:if>"><input type="radio" <c:if test="${!entity.partial}">checked="checked"</c:if>name="partial" id="partial2" value="false" style="opacity: 0;"></span></div>False</div></div></div></div>
<!--language --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="language">Language :</label><input class="span4" id="language" name="language"   type="text" value="${entity.language}" /></div></div></div>
<!--inlineEdit --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="inlineEdit">Inline Edit :</label><div class="left marginT5 marginR10"><div class="radio" id="uniform-inlineEdit1"><span class="<c:if test="${entity.inlineEdit }">checked</c:if>"><input type="radio" name="inlineEdit" id="inlineEdit1" value="true" <c:if test="${entity.inlineEdit}">checked="checked"</c:if> style="opacity: 0;"></span></div>True</div><div class="left marginT5 marginR10"><div class="radio" id="uniform-inlineEdit2"><span class="<c:if test="${!entity.inlineEdit}">checked</c:if>"><input type="radio" <c:if test="${!entity.inlineEdit}">checked="checked"</c:if>name="inlineEdit" id="inlineEdit2" value="false" style="opacity: 0;"></span></div>False</div></div></div></div>
<!--templateFull --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="templateFull">Full Template :</label><div class="left marginT5 marginR10"><div class="radio" id="uniform-templateFull1"><span class="<c:if test="${entity.templateFull }">checked</c:if>"><input type="radio" name="templateFull" id="templateFull1" value="true" <c:if test="${entity.templateFull}">checked="checked"</c:if> style="opacity: 0;"></span></div>True</div><div class="left marginT5 marginR10"><div class="radio" id="uniform-templateFull2"><span class="<c:if test="${!entity.templateFull}">checked</c:if>"><input type="radio" <c:if test="${!entity.templateFull}">checked="checked"</c:if>name="templateFull" id="templateFull2" value="false" style="opacity: 0;"></span></div>False</div></div></div></div>
<!--search --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="search">Searchable :</label><div class="left marginT5 marginR10"><div class="radio" id="uniform-search1"><span class="<c:if test="${entity.search }">checked</c:if>"><input type="radio" name="search" id="search1" value="true" <c:if test="${entity.search}">checked="checked"</c:if> style="opacity: 0;"></span></div>True</div><div class="left marginT5 marginR10"><div class="radio" id="uniform-search2"><span class="<c:if test="${!entity.search}">checked</c:if>"><input type="radio" <c:if test="${!entity.search}">checked="checked"</c:if>name="search" id="search2" value="false" style="opacity: 0;"></span></div>False</div></div></div></div>
<!--editTemplate --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3">Edit Template :</label><div class="span4 controls"><select name="editTemplateId"><option  value="">=======================</option>             <c:if test="${not empty templates}"><c:forEach var="single" items="${templates}"><option value="${single.id}"${(single.id == entity.editTemplate.id)?'selected':'' }>${single.name}</option></c:forEach></c:if></select></div></div></div></div>
<!--css --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="css">Css :</label><input class="span4" id="css" name="css"   type="text" value="${entity.css}" /></div></div></div>
<!--background --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="background">Background Image :</label><input class="span4 ckfile" id="background" name="background"   type="text" value="${entity.background}" /></div></div></div>

<!--modifyTime --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="modifyTime">Modification Time :</label><input class="span4" id="modifyTime" name="modifyTime"   type="text" value="${entity.modifyTime}" /></div></div></div>



<textarea   cols="80" id="editor4" rows="10"
				tabindex="1" name="content"><c:out value="${entity.content}"></c:out></textarea>
 <div class="form-row row-fluid">
				<div class="span12">
					<div class="row-fluid">
						<div class="form-actions">
							<div class="span3"></div>
							<div class="span4 controls">
								<button type="submit" class="btn btn-info marginR10">Save Changes</button>
								<button class="btn btn-danger">Cancel</button>
							</div>
						</div>
					</div>
				</div>
			</div>
		</form>

	</div>
	<!-- End .span12 -->

</div>